﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Reflection;
using System.Web;

namespace Hetang.Models.Config
{
    /// <summary>
    /// 获取网站配置
    /// </summary>
    public static class WebConfig
    {
        /// <summary>
        /// 网站名称
        /// </summary>
        public static string WebsiteName
        {
            get { return ConfigurationManager.AppSettings["SiteName"]; } 
        }

        /// <summary>
        /// 网站版本
        /// </summary>
        public static string Version
        {
            get { return ConfigurationManager.AppSettings["Version"]; }
        }

        /// <summary>
        /// 网站地址
        /// </summary>
        public static string SiteHost
        {
            get { return ConfigurationManager.AppSettings["SiteHost"]; }
        }
    }
}